import { Layout } from '@fl/utils/routerHelper'

const leaseApproval: AppRouteRecordRaw = {
    children: [
        {
            children: [
                {
                    component: () => import('@/pages/lease-approval/project-approval/project-detail.vue'),
                    meta: {
                        activeMenu: '/house-source-center/lease-approval/project-approval',
                        hidden: true,
                        noTagsView: true,
                        title: '项目详情',
                    },
                    name: 'lease-approval-project-detail',
                    path: 'project-detail',
                },
            ],
            component: () => import('@/pages/lease-approval/project-approval/index.vue'),
            meta: {
                title: '项目上架审批',
            },
            name: 'lease-approval-project-approval',
            path: 'project-approval',
        },
        {
            component: () => import('@/pages/lease-approval/project-approval/project-detail.vue'),
            meta: {
                activeMenu: '/house-source-center/lease-approval/project-approval',
                hidden: true,
                noTagsView: true,
                title: '项目详情',
            },
            name: 'lease-approval-project-detail',
            path: 'project-detail',
        },
        {
            component: () => import('@/pages/lease-approval/housing-resources/index.vue'),
            meta: {
                title: '房源上架审批',
            },
            name: 'housing-resources-approval',
            path: 'housing-resources',
        },
        {
            component: () => import('@/pages/lease-approval/housing-resources/component/detail.vue'),
            meta: {
                activeMenu: '/house-source-center/lease-approval/housing-resources',
                hidden: true,
                noTagsView: true,
                title: '房源详情',
            },
            name: 'housing-resources-detail',
            path: 'housing-resources-detail',
        },
        {
            component: () => import('@/pages/house-examine/index.vue'),
            meta: {
                title: '户型上架审批',
            },
            name: 'putaway-examine-house-examine',
            path: 'house-examine',
        },
        {
            component: () => import('@/pages/house-examine/component/add/index.vue'),
            meta: {
                activeMenu: '/house-source-center/lease-approval/house-examine',
                hidden: true,
                noTagsView: true,
                title: '户型详情',
            },
            name: 'add-house-examine',
            path: 'add-house-examine',
        },
        {
            component: () => import('@fl/views/wujie/lease-sub.vue'),
            meta: {
                title: '合同模板审批设置',
            },
            name: 'lease-approval-finance-contract-template',
            path: 'finance/contract_template',
        },
        {
            component: () => import('@fl/views/wujie/lease-sub.vue'),
            meta: {
                title: '开票信息审批设置',
            },
            name: 'lease-approval-finance-business-billing',
            path: 'finance/business_billing',
        },
    ],
    component: Layout,
    meta: {
        icon: 'i-icon-park-outline:seal',
        title: '租赁审批管理',
    },
    name: 'lease-approval',
    path: 'lease-approval',
}

export default leaseApproval
